<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;

$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
$basic=$this->plugin_setting('basic');
$return['banner']=$basic['image'];
$return['basic']=$basic;
//留言
if($_RQ['op']=='main'){
	$id=$_RQ['id'];
	if(!$id){
		exi('未找到用户留言！','error');
	}
	$paylog=pdo_get('jy_zhongchou_paylog',array('uniacid'=>$_SESSION['uniacid'],'id'=>$id));
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$insert(
			'uniacid'=>$_SESSION['uniacid'],
			'mid'=>$_SESSION['uid'],
			'pid'=>$paylog['pid'],
			'payid'=>$id,
			'content'=>$postdata['content'],
			'createtime'=>TIMESTAMP
		);
		pdo_insert('jy_zhongchou_liuyan',$insert);
	}
	$return['post']=array();
	$return['paylog']=$paylog;
	exi($return);

}
